/*
 Navicat Premium Data Transfer

 Source Server         : 3306
 Source Server Type    : MySQL
 Source Server Version : 80028
 Source Host           : localhost:3306
 Source Schema         : mybatis

 Target Server Type    : MySQL
 Target Server Version : 80028
 File Encoding         : 65001

 Date: 10/05/2022 16:41:23
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for t_dept
-- ----------------------------
DROP TABLE IF EXISTS `t_dept`;
CREATE TABLE `t_dept` (
  `did` int NOT NULL AUTO_INCREMENT,
  `dept_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`did`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of t_dept
-- ----------------------------
BEGIN;
INSERT INTO `t_dept` (`did`, `dept_name`) VALUES (1, 'A');
INSERT INTO `t_dept` (`did`, `dept_name`) VALUES (2, 'B');
INSERT INTO `t_dept` (`did`, `dept_name`) VALUES (3, 'C');
COMMIT;

-- ----------------------------
-- Table structure for t_emp
-- ----------------------------
DROP TABLE IF EXISTS `t_emp`;
CREATE TABLE `t_emp` (
  `eid` int NOT NULL AUTO_INCREMENT,
  `emp_name` varchar(255) DEFAULT NULL,
  `age` int DEFAULT NULL,
  `sex` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `did` int DEFAULT NULL,
  PRIMARY KEY (`eid`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of t_emp
-- ----------------------------
BEGIN;
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (1, '张三', 34, '男', '123@qq.com', 1);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (2, '李四', 23, '女', '123@qq.com', 2);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (3, '王武', 423, '男', '123@qq.com', 3);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (4, '找刘', 234, '女', '123@qq.com', 2);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (5, '天启', 23, '男', '123@qq.com', 3);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (9, '3214', NULL, NULL, NULL, NULL);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (10, '444', NULL, NULL, NULL, NULL);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (11, '222', NULL, NULL, NULL, NULL);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (12, 'a1', 22, '男', 'dad@qq.com', NULL);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (13, 'a12', 22, '男', 'dad@qq.com', NULL);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (14, 'a14', 22, '男', 'dad@qq.com', NULL);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (15, 'a1', 22, '男', 'dad@qq.com', NULL);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (16, 'a12', 22, '男', 'dad@qq.com', NULL);
INSERT INTO `t_emp` (`eid`, `emp_name`, `age`, `sex`, `email`, `did`) VALUES (17, 'a14', 22, '男', 'dad@qq.com', NULL);
COMMIT;

-- ----------------------------
-- Table structure for t_user
-- ----------------------------
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user` (
  `id` int NOT NULL AUTO_INCREMENT,
  `username` varchar(20) DEFAULT NULL,
  `password` varchar(20) DEFAULT NULL,
  `age` int DEFAULT NULL,
  `sex` char(1) DEFAULT NULL,
  `email` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of t_user
-- ----------------------------
BEGIN;
INSERT INTO `t_user` (`id`, `username`, `password`, `age`, `sex`, `email`) VALUES (3, '张三', '123', 23, '女', '1223131@qq.com');
INSERT INTO `t_user` (`id`, `username`, `password`, `age`, `sex`, `email`) VALUES (4, 'wangwu', '123', 23, '男', 'safad@qq.com');
INSERT INTO `t_user` (`id`, `username`, `password`, `age`, `sex`, `email`) VALUES (5, 'wangwu', '123', 23, '男', 'safad@qq.com');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
